// 一次性画3000个面或线
const editMap = async (list,type) => {
    let skip = 1000;
    for (let i = 0;i< list.length;){
        const limit = i+ skip;
        if(limit > list.length){
            limit = list.length;
        }
        const tmp = list.slice(i,limit);
        type == 1 ? await window.__g.polyline.add(tmp) : await window.__g.polygon.add(tmp);
        i += skip;
    }

    console.log("已经画完了");
};

export { editMap }